import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueLazyLoad from 'vue-lazyload'

Vue.prototype.$bus = new Vue();// 添加事件总线对象

Vue.use(ElementUI);//使用饿了吗UI插件

Vue.use(VueLazyLoad,{
  loading: require('./assets/img/common/placeholder.png')
});//使用图片懒加载插件
//要想使用图片懒加载  将img的scr改为v-lazy

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
